package com.hotels.management.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.hotels.management.base.domain.BaseEntity;

@Entity
@Table(name = "CLIENT")
public class Client extends BaseEntity {
	
	private static final long serialVersionUID = -1348720569661608943L;
	
	private String surname;
	
	private String name;
	
	private String patronymic;
	
	private Date bithDate;
	
	private String comingPurpose;
	
	private String address;
	
	private String passport;

	@Column(name="SURNAME")
	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	@Column(name="NAME")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name="PATRONYMIC")
	public String getPatronymic() {
		return patronymic;
	}

	public void setPatronymic(String patronymic) {
		this.patronymic = patronymic;
	}

	@Column(name="BITH_DATE")
	@Temporal(value=TemporalType.DATE)
	public Date getBithDate() {
		return bithDate;
	}

	public void setBithDate(Date bithDate) {
		this.bithDate = bithDate;
	}

	@Column(name="COMING_PURPOSE")
	public String getComingPurpose() {
		return comingPurpose;
	}

	public void setComingPurpose(String comingPurpose) {
		this.comingPurpose = comingPurpose;
	}

	@Column(name="ADDRESS")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name="PASSPORT")
	public String getPassport() {
		return passport;
	}

	public void setPassport(String passport) {
		this.passport = passport;
	}
}
